package com.dbf.forum.core;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "MESSAGE")
public class Message implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1142560835126517753L;

	@Id
	@GeneratedValue
	@Column(name = "MESSAGE_ID")
	private Long id;
	
	@Column(name = "MESSAGE_COMMENT")
	private String messageComment;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MESSAGE_CREATION_DATE")
	private Date messageCreationDate;
	
	public Message() {
		super();
	}
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMessageComment() {
		return messageComment;
	}

	public void setMessageComment(String messageComment) {
		this.messageComment = messageComment;
	}

	public Date getMessageCreationDate() {
		return messageCreationDate;
	}

	public void setMessageCreationDate(Date messageCreationDate) {
		this.messageCreationDate = messageCreationDate;
	}

}
